<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{:sysconfig('site','site_name')}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__STATIC__/admin/new_css/materialdesignicons.min.css">
    <link rel="stylesheet" href="__STATIC__/admin/new_css/vendor.bundle.base.css">
    <link rel="stylesheet" href="__STATIC__/admin/new_css/style.css">
    <link rel="shortcut icon" href="{:sysconfig('site', 'site_ico')}" />
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        window.CONFIG = {
            ADMIN: "{$adminModuleName|default='admin'}",
            CONTROLLER_JS_PATH: "{$thisControllerJsPath|default=''}",
            ACTION: "{$thisAction|default=''}",
            AUTOLOAD_JS: "{$autoloadJs|default='false'}",
            IS_SUPER_ADMIN: "{$isSuperAdmin|default='false'}",
            VERSION: "{$version|default='1.0.0'}",
        };
    </script>
    <script src="__STATIC__/plugs/layui-v2.5.6/layui.all.js" charset="utf-8"></script>
    <script src="__STATIC__/plugs/require-2.3.6/require.js" charset="utf-8"></script>
    <script src="__STATIC__/config-admin.js" charset="utf-8"></script>
    <style>
        body {
            background-image: url(/static/admin/new_images/bg4/bg_{:mt_rand(1,14)}.jpg);
            background-size: cover;
        }
        .btn-primary {
            background-color: #00A29A;
            border-color: #00A29A;
        }
        .btn-primary:hover {
            background-color: #00948d;
            border-color: #00A29A;
        }
        .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle {
            background-color: #00948d;
            border-color: #00A29A;
        }
        .d_footer{
            font-size: 14px;
            text-align: center;
            margin-top: 20px;
            color: #8b8b8b;
        }
    </style>
</head>
<body>
<div class="container-scroller">
    <div class="container-fluid page-body-wrapper full-page-wrapper">
        <div class="content-wrapper d-flex align-items-center auth px-0" style="background: unset;">
            <div class="row w-100 mx-0">
                <div class="col-lg-4 mx-auto">
                    <div class="auth-form-light text-left py-5 px-4 px-sm-5" style="border-radius: 15px;">
                        <!-- <div class="brand-logo"> -->
                            <!-- <img src="__STATIC__/admin/new_images/logo.png?v={:time()}" alt="logo"> -->
                        <!-- </div> -->
                        <h3 style="text-align:center;">沙雅镇人民政府疫情防控管理平台</h3>
<!--                        <h6 class="font-weight-light">Sign in to continue.</h6>-->
                        <form class="pt-3">
                            <div class="form-group">
                                <input type="text" name="username" class="form-control form-control-lg" placeholder="用户名" maxlength="24">
                            </div>
                            <div class="form-group">
                                <input type="password" name="password" class="form-control form-control-lg" placeholder="密码" maxlength="20">
                            </div>
                            {if $captcha == 1}
                            <div class="form-group">
                                <input type="text" name="captcha" maxlength="4" class="form-control form-control-lg" style="width: 69%;display: inline-block;" placeholder="验证码" oninput="value=value.replace(/[^\d]/g,'')">
                                <img id="refreshCaptcha" class="validateImg" style="width: 29%;height: 3.5rem;" src="{:url('login/captcha')}" onclick="this.src='{:url(\'login/captcha\')}?seed='+Math.random()">
                            </div>
                            {/if}
                            <div class="mt-5">
                                <a class="btn btn-block btn-primary btn-lg font-weight-medium auth-form-btn" style="color:white;cursor: pointer;" lay-submit>登录</a>
                            </div>
                            <div class="d_footer">
                                <div>沙雅镇疫情防控管理系统归属于沙雅镇人民政府</div>
                                <div>沙雅之窗网络工作室仅提供域名、技术支持</div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>